const Home = () => import('@/pages/Home')
const Cart = () => import('@/pages/Cart')
const Mall = () => import('@/pages/Mall')
const Main = () => import('@/pages/Main')
const Login = () => import('@/pages/Login')
const Setting = () => import('@/pages/Setting')
const Detail = () => import('@/pages/Detail')
const Cartlist = () => import('@/pages/Cartlist')

const routes = [
  {
    path: '/',
    redirect: 'Home'
  },
  {
    path: '/Home',
    name: 'Home',
    titile: '首页',
    component: Home,
    icon: '&#xe658;',
    isNav: true,
    images1:'../../../static/images/home/11.png',
    images2:'../../../static/images/home/12.png'
  }, {
    path: '/Mall',
    name: 'Mall',
    titile: '分类',
    component: Mall,
    icon: '&#xe612;',
    isNav: true
  }, {
    path: '/setting',
    name: 'Setting',
    titile: '逛',
    component: Setting,
    icon: '&#xe615;',
    isNav: true
  }, {
    path: '/Cart',
    name: 'Cart',
    titile: '购物车',
    component: Cart,
    icon: '&#xe60a;',
    isNav: true,
    meta: {
      isAuthRequired: true
    }
  }, {
    path: '/Main',
    name: 'Main',
    titile: '我的',
    icon: '&#xe60c;',
    component: Main,
    isNav: true
  }, {
    path: '/Login',
    name: 'login',
    component: Login
  }, {
    path: '/Cartlist',
    name: 'Cartlist',
    component: Cartlist
  }, {
    path: '/Detail/:id',
    name: 'detail',
    component: Detail
  }]

export default routes
